﻿using UnityEngine;
using System.Collections;
using System;
using System.IO;

public class Debugger : MonoBehaviour {

	private static StreamWriter sw;


	// Use this for initialization
	void Awake () {
		
	}

	void Start()
	{
		string fileName = "";
//#if UNITY_IPHONE			
//            string fileNameBase = Application.dataPath.Substring(0, Application.dataPath.LastIndexOf('/'));
//            fileName = fileNameBase.Substring(0, fileNameBase.LastIndexOf('/')) + "/Documents/" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".log";
//#elif UNITY_ANDROID
//            fileName = Application.persistentDataPath + "/" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".log";
//#else
//        fileName = Application.dataPath + "/" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".log";
//#endif
//        sw = File.CreateText(fileName);
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public static void Log(string text)
	{

//#if UNITY_IPHONE || UNITY_ANDROID
//        sw.WriteLine(text);
//        sw.Flush();
//#endif

//#if UNITY_EDITOR
//        sw.WriteLine(text);
//        sw.Flush();
//        glog.debug(text);
//#endif
	}
}
